<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@ page import="com.conversationboard.model.*" %>
<%@ page import="com.conversationboard.view.*" %>
<%@ page import="java.util.List"%>
<%@ page import="com.conversationboard.model.adminlog.AdminLogEntry"%>


<%
	User user = User.get(request.getUserPrincipal().getName());
	List<AdminLogEntry> log = (List<AdminLogEntry>) request.getAttribute("log");
	
	if (log.size()==0) {
		request.setAttribute("noMoreEntries", true);
	} else {
		request.setAttribute("noMoreEntries", false);
	}
	
%>

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta name="ROBOTS" content="NOINDEX"></meta>
	<title>Admin Log</title>
	<link rel="stylesheet"title="Conversation Board" type="text/css" href="${contextPath}/Stylesheets/<%=StyleSheets.getStyleSheetFileName(request.getCookies())%>">
</head>

<body>

	<%= MainMenu.display(request.getUserPrincipal()) %>

	<div class="headingblock">
		<h1>Admin Log</h1>
	</div>
	
	<div class="mainblock">

		<%= AdminLogDisplay.display(user, log) %>
		
		<c:if test="${not noMoreEntries}">
			<p><a href="${contextPath}/ViewAdminLogControllerServlet?pageNumber=${pageNumber}">Next...</a></p>
		</c:if>

	</div>

	<!--<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>-->
	<!--<script type="text/javascript">_uacct = "UA-1148679-1";urchinTracker();</script>--> 

</body>
</html>
